package com.bw.my.adapter;


import android.widget.RadioButton;

import com.bw.my.R;
import com.bw.my.mvvm.model.entity.ShipAddressEntity;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;

public class ShipAddressRecyclerAdapter extends BaseQuickAdapter<ShipAddressEntity.DataBean, BaseViewHolder> {

    RadioButton radioButton;

    public ShipAddressRecyclerAdapter() {
        super(R.layout.item_shipaddress);
        addChildClickViewIds(R.id.item_shipaddress_del);
        addChildClickViewIds(R.id.item_shipaddress_compile);
        addChildClickViewIds(R.id.item_shipaddress_rb);
        addChildClickViewIds(R.id.item_shipaddress_name);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, ShipAddressEntity.DataBean dataBean) {
        baseViewHolder.setText(R.id.item_shipaddress_name,dataBean.getShip_user_name());
        baseViewHolder.setText(R.id.item_shipaddress_address,dataBean.getShip_address());
        radioButton = baseViewHolder.getView(R.id.item_shipaddress_rb);

    }
}
